<?php
namespace app\company\controller;
use think\Controller;
use think\Db;
use think\Session;
class Nt extends Controller
{
    public function index()
    {
        $company_id = Session::get('company_id');
        $res = Db::name('nt s')
                ->join('school p','s.school_id = p.school_id')
                ->join('user u','s.user_id = u.user_id')
                ->where('company_id',$company_id)
                ->select();
        // dump($res);
        // exit;
        $this->assign("res",$res);
       return $this->fetch();
    }
    
    public function ziliao($user_id)
    {
        $company_id = Session::get('company_id');
        $res = Db::name('user')
                ->where('user_id',$user_id)
                ->select();
        // dump($res);
        // exit;
        $this->assign("res",$res);
        
       return $this->fetch();
    }
}